<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">

    <div class="swiper-container swiper-container-banner" data-space-between='10'>
        <div class="swiper-wrapper">
            <div class="swiper-slide" th:each="advert, index : ${advertList}">
                <a th:if="${advert['redirectType']}!=1 and  ${advert['redirectType']}!=3"  th:href="(${advert['redirectType']}==4 ?@{/mobile/course/liveInfo(courseId=${advert['courseId']})} : (${advert['redirectType']}==0 ? 'javascript:void(0)' : @{/mobile/course/info?courseId={courseId}(courseId=${advert['courseId']})}))" th:target="${advert['newPage']==2}?'_self'">
                    <img alt="image" class="img-responsive" th:src="${advert['imageMap']['url']}">
                </a>

                <a class="openBanner"  th:if="${advert['redirectType']}==1 or  ${advert['redirectType']}==3"th:attrappend="data-soure=${advert['pageUrl']},data-jump=${advert['newPage']}">
                    <img alt="image" class="img-responsive" th:src="${advert['imageMap']['url']}">
                </a>
            </div>
        </div>
        <div class="swiper-pagination"></div>
    </div>
</html>